/**
  ******************************************************************************
  * @file    GPIO/IOToggle/main.c
  * @author  MCD Application Team
  * @version V3.5.0
  * @date    08-April-2011
  * @brief   Main program body.
  ******************************************************************************
  * @attention
  *
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include    "stm3210b_lk1_eval.h"
#include    "spi_sd_driver.h"
#include    "enc28j60_app.h"
#include    "keydisp_app.h"
#include	"spi_conf.h"
#include    "fatfs_app.h"
#include    "ucos_ii.h"
#include    "RTC_Time.h"

int main(void)
{

    //init os
    OSInit();
    //init system_rcc
    arm_system_init();
    //init keydisp app
    keydisp_init();
    //spi configure and sd card ,enc28j60 gpio configure
    spigpio_configure();
    //enc28j60 app
    netdevice_app_init();
    //sd card initialize and fatfs mount
    //fatfs_app_init();

	//intt_serial();
	//init_severclint();
	//init_http();
	//init_tftp();
	//init_ftp();

    //OS start//
    OSStart();

    return 0;

  }

